<!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>
    
    <body>
        
    </body>
    
    <script type="text/javascript">
        function my_post(path, params) {
            var method = "POST";
            var form = document.createElement("form");
            form.setAttribute("method", method);
            form.setAttribute("action", path);
            
            for(var key in params){
                
                if (params.hasOwnProperty(key)) {
                    
                    var hiddenFild = document.createElement("input");
                    hiddenFild.setAttribute("type", "hidden");
                    hiddenFild.setAttribute("name", key);
                    hiddenFild.setAttribute("value", params[key]);
                }
                
                form.appendChild(hiddenFild);
            }
            
            document.body.appendChild(form);
            form.submit();
        }
    </script>
    
</html>
